@config.main("Download Genome") {

    <div class="body-box">
        <div class="page-box">

            @config.subTitle("Download Genome")

            <div class="main-body">

                <table class="table table-bordered table-hover" id="table"
                style="width: 100%;
                    text-align: center;" >
                    <thead>
                        <tr>
                            <th>Species</th>
                            <th>Genome</th>
                            <th>GFF</th>
                            <th>CDS</th>
                            <th>Protein </th>
                            <th>Annotations </th>
                        </tr>
                    </thead>
                    <tbody>
                        @tbody(Html("<i>M. sativa </i>cultivar XinJiangDaYe"), "XJDY")
                        @tbody(Html("<i>M. sativa </i>cultivar Zhongmu No. 1"), "ZMNO")
                        @tbody(Html("<i>M. sativa spp. caerulea</i>"), "MSAE")
                        @tbody(Html("<i>M. truncatula</i>"),"MTRU")
                        @tbody(Html("<i>M. sativa</i> cultivar Zhongmu No. 4"),"ZM-4")
                    </tbody>
                </table>
            </div>
        </div>
    </div>

}

@tbody(species: Html, abbr: String) = {
    <tr>
        <td><a href="/alfalfa/browse/genome/@abbr" target="_blank"> @species </a></td>
        <td><a href="/alfalfa/download/downloadFile?name=@abbr&suffix=genome" target="_blank">FASTA</a></td>
        <td><a href="/alfalfa/download/downloadFile?name=@abbr&suffix=gff" target="_blank">GFF</a></td>
        <td><a href="/alfalfa/download/downloadFile?name=@abbr&suffix=cds" target="_blank">FASTA</a></td>
        <td><a href="/alfalfa/download/downloadFile?name=@abbr&suffix=pep" target="_blank">FASTA</a></td>
        <td><a href="/alfalfa/download/downloadFile?name=@abbr&suffix=anno" target="_blank">TXT</a></td>
    </tr>
}